package com.huashi.dealer.modular.business.setting.param;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

@Data
@Schema(description = "满额包邮设置参数")
public class FullFreeSettingParam {

    @Schema(description = "是否开启满额包邮：1开启，0关闭")
    private Integer isOpen;

    @Schema(description = "商品赠品类型：0单选，1混选")
    private Integer isGoodsType;

    @Schema(description = "单笔订单额度")
    private BigDecimal money;

    @Schema(description = "商品赠送数量")
    private Integer number;

    @Schema(description = "不参与包邮的地区")
    private NotInRegion notinRegion;

    @Schema(description = "不参与包邮的商品ID集合")
    private List<Long> notinGoods;

    @Data
    @Schema(description = "不参与包邮的地区")
    public static class NotInRegion {
        @Schema(description = "不参与包邮的省份ID集合")
        private List<Long> province;

        @Schema(description = "不参与包邮的城市ID集合")
        private List<Long> citys;

        @Schema(description = "地区树形数据")
        private List<Object> treeData;
    }
}
